import request from "@/utils/request";

// 案例管理
export function getCaseList(query) {
  return request({
    url: "/applet/case/list",
    method: "get",
    params: query,
  });
}
// 新增
export function addCase(query) {
  return request({
    url: "/applet/case",
    method: "POST",
    data: query,
  });
}
// 根据id 查询案例信息
export function getCaseById(id) {
  return request({
    url: "/applet/case/" + id,
    method: "get",
  });
}
// 修改案例
export function updateCase(query) {
  return request({
    url: "/applet/case",
    method: "PUT",
    data: query,
  });
}
// 删除案例
export function delCase(data) {
  return request({
    url: "/applet/case/" + data,
    method: "delete",
  });
}
